﻿using System;
using System.Data;
using StudentManagement.Services;

class Program
{
    static void Main(string[] args)
    {
        var manager = new StudentManager();
        manager.AddStudent("小明", 1);
        Console.OutputEncoding = System.Text.Encoding.UTF8;
        Console.WriteLine("学生列表：");
        var students = manager.GetAllStudents();
        foreach (DataRow row in students.Rows)
        {
            Console.WriteLine($"ID: {row["Id"]}, 姓名: {row["Name"]}");
        }

        Console.WriteLine("\n操作日志：");
        var logs = manager.GetLogs();
        foreach (DataRow row in logs.Rows)
        {
            Console.WriteLine($"{row["Timestamp"]} - {row["Operation"]}");
        }
    }
}


